Skip to content

fix: keep postponing when a task cannot be saved - #87

Merged
tobixen merged 1 commit into
masterfrom
fix/postpone-put-error
Nov 11, 2026
Merged

tobixen merged 1 commit into
masterfrom
fix/postpone-put-error

Conversation

@tobixen

@tobixen tobixen commented Nov 11, 2026

Copy link
Copy Markdown
Member

Retrying the 423 itself is left to caldav: see docs/design/RETRY_AND_RESILIENCE_DESIGN.md there, tracked in python-caldav/caldav#695.

Commit message:

fix: keep postponing when a task cannot be saved

During panic dismissal a "423 Locked" from Xandikos (its git index
was locked by another write) aborted the whole run with a traceback.
A PutError on saving a postponed task is now reported, and the rest of
the list is still postponed.  The task is not marked as postponed.  If
the parent a child needs moved cannot be saved, the child is reported
as not postponed.  A parent saved before its child fails stays moved.

Prompt: (traceback from `plann interactive manage-tasks` pasted, ending in "caldav.lib.error.PutError: PutError at '423 Locked'" from _procrastinate's x.save())
Followup-Prompt: I think we have a github issue and some design document on "retry logic in the caldav library".  Please find and add the 423-retry into the same design document.  Fix the try-and-continue in plann. [the design document is in the caldav repository]

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Reviewed-by: Tobias Brox <tobias@redpill-linpro.com>

During panic dismissal a "423 Locked" from Xandikos (its git index
was locked by another write) aborted the whole run with a traceback.
A PutError on saving a postponed task is now reported, and the rest of
the list is still postponed.  The task is not marked as postponed.  If
the parent a child needs moved cannot be saved, the child is reported
as not postponed.  A parent saved before its child fails stays moved.

Prompt: (traceback from `plann interactive manage-tasks` pasted, ending in "caldav.lib.error.PutError: PutError at '423 Locked'" from _procrastinate's x.save())
Followup-Prompt: I think we have a github issue and some design document on "retry logic in the caldav library".  Please find and add the 423-retry into the same design document.  Fix the try-and-continue in plann. [the design document is in the caldav repository]

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Reviewed-by: Tobias Brox <tobias@redpill-linpro.com>
@tobixen
tobixen merged commit 5c4f5c2 into master Nov 11, 2026
9 checks passed
@tobixen
tobixen deleted the fix/postpone-put-error branch November 11, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant